package com.liupengyuan.framework.web.query;

import java.util.List;

public interface IGenericPage<T> {

	public abstract boolean isFirstPage();

	public abstract boolean isLastPage();

	public abstract boolean hasNextPage();

	public abstract boolean hasPreviousPage();

	public abstract int getLastPageNo();

	public abstract List<T> getThisPageElements();

	public abstract int getTotalCount();

	public abstract int getThisPageFirstElementIndex();

	public abstract int getThisPageLastElementIndex();

	public abstract int getNextPageNo();

	public abstract int getPreviousPageNo();

	public abstract int getPageSize();

	public abstract int getPageNo();
}
